home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 4_0 / LIFER__ / PROTO / U / COMMON_L.H < prev    next >
Text File  |  1991-08-02  |  837b  |  26 lines

  1. /*  Common_Life */                                                        /* Common */
  2.  
  3. /* File name:  Common_Life.h   */
  4. /* Function:  Common variables for program specific code. */
  5. /* History: 7/23/91 Original by Prototyper 3.0   */
  6.  
  7.  
  8. /* ======================================================= */
  9. #define InTEBoxX    8    /* value of DType when cursor hit is in TEBOX */
  10. #define InTEBoxY    7
  11. #define CellBox        4
  12. #define MaxColumns    10
  13. #define MaxRows        5
  14.  
  15. extern long gX_Value;
  16. extern long gY_Value;
  17. extern long gCellCounter;
  18.  
  19. /* ======================================================= */
  20. /* PROTOTYPES */
  21. Boolean CHECKXY(DialogPtr GetSelection, short DType, Handle DItem, Rect tempRect);
  22. void STORE_VALUES(DialogPtr GetSelection, short DType, Handle DItem, Rect tempRect);
  23. void LIFE_PROGRAM(void);
  24. void DRAWNSTRING(void);
  25. void COMPUTE(void);
  26. int NEIGHBORCOUNT(int countY, int countX);